

import '/library/src/log_config.dart';

import './logger.dart';

///
/// @ProjectName: flutter_mh
/// @ClassName: log_manager
/// @Description: Log 打印类的入口文件
/// 单例模式初始化 logger 配置
/// @Author: 小麦穗
/// @CreateDate: 2023/5/18 17:35
/// @UpdateUser: 更新者
/// @UpdateDate: 2023/5/18 17:35
/// @UpdateRemark: 更新说明
/// @Version: 1.0
class LogManager{
  static late final  LogManager instance;
  late final LogConfig config;

  LogManager(LogConfig config){
    this.config = config;
  }
   static LogManager getInstance() {
    return instance;
  }

   static void init(LogConfig config) {
     instance = new LogManager(config);
  }

  LogConfig getConfig() {
    return config;
  }
}

